home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / puppyred_ball_war.swf / scripts / DefineSprite_37_throw4 / frame_1 / DoAction.as
Text File  |  2007-09-26  |  323b  |  20 lines

  1. stop();
  2. throwtime1 = _root.energyH / 2;
  3. this.onEnterFrame = function()
  4. {
  5.    throwtime2++;
  6.    if(throwtime2 <= throwtime1)
  7.    {
  8.       this._x -= _root.x;
  9.       this._y -= _root.y;
  10.    }
  11.    else
  12.    {
  13.       gotoAndStop(2);
  14.    }
  15.    if(this._y < -30 | this._x < -30)
  16.    {
  17.       this.removeMovieClip();
  18.    }
  19. };
  20.